package com.hrms.patient.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
@NoArgsConstructor
@AllArgsConstructor

public class Patient {
    private Integer id; //用户id
    private String name; //姓名
    private String age; //年龄
    private String visitId;//就诊卡号
    private String userId;//患者编号
    private String phone;//联系方式
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate visitDate;//就诊日期
    private String nation; //民族
    private String maritalStatus; //婚姻状况
    private String educationLevel;//文化程度
    private String job; //职业
    private String address;//常住址
    private String hobby;//性格爱好
    private String habit;//生活习惯
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime visitTime; //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime; //更新时间
}
